package cn.zebra.dev.order.module.express.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 订单物流信息(与订单表一对一)
 *
 * @author runnable
 */
@TableName("orders_express")
@Getter
@Setter
public class OrdersExpressEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("订单id")
    private Long ordersId;

    @ApiModelProperty("物流单号")
    private String expressSn;

    @ApiModelProperty("物流编码(查物流用)")
    private String expressCode;

    @ApiModelProperty("发货时间")
    private LocalDateTime expressTime;

    @ApiModelProperty("发货人id")
    private Long expressUserId;
}
